package com.xiaomaoguai.demo.spock;

import org.apache.commons.lang3.StringUtils;

/**
 * @author WeiHui-Z
 * @since 2021-11-03 13:01
 */
public class PhoneUtils {

	public static boolean isAllZero(final String phone) {
		boolean result = false;
		if (StringUtils.isNotBlank(phone)) {
			int len = StringUtils.trim(phone).length();
			StringBuilder sb = new StringBuilder();
			while (len-- > 0) {
				sb.append("0");
			}
			result = StringUtils.equals(sb.toString(), phone);
		}
		return result;
	}

}
